export function request(url: string, method = 'GET', config = {}) {
  return fetch(url, { method, ...config })
}

export function get(url: string, config = {}) {
  return request(url, 'GET', config)
}

export function post(url: string, config = {}) {
  return request(url, 'POST', config)
}
